{% if show_menu %}
<div class="nav">
  <!-- 保持对称 -->
  <div class="menu-box float-left">
    <ul class="nav-ul">
      <li><a class="menu-link" href="/">{{T("Note")}}</a></li>
      {% if _has_login %}
      <li><a class="menu-link" href="/message?status=created">{{T("Message")}}({{_notice_count}})</a></li>
      {% end %}
      {% if _is_admin %}
      <li><a class="menu-link" href="/plugins_list">{{T("Plugin")}}</a></li>
      {% end %}
      <li><a class="menu-link" href="/system/index">{{T("System")}}</a></li>
      {% if not _has_login %}
      <li><a class="menu-link" class="link" href="/login">{{T("Login")}}</a></li>
      {% end %}
      <li><a class="menu-link" href="/code/wiki/README.md">{{T("About")}}</a></li>
    </ul>
  </div>

  <div class="search-box">
    <form id="searchForm" method="GET" action="{{?search_action,'/search/search'}}">
      <input id="key" name="key" class="nav-search-input" 
        placeholder="{{?search_placeholder, '搜索或指令'}}" 
        value="{{?key}}"/>
      <button class="nav-search-btn">搜</button>
      <input class="hide" name="category" value="{{?category}}" />
      {% block search_form %} {% end %}
    </form>
  </div>
</div>
{% end %}